import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import dataV from "@jiaminghi/data-view";
Vue.use(dataV);


// 引入vue-awesome
// import "vue-awesome/icons/index.js";
import "vue-awesome/icons/chart-area";
import "vue-awesome/icons/chart-bar";
import "vue-awesome/icons/chart-line";
import "vue-awesome/icons/chart-pie";
import "vue-awesome/icons/align-left";
import Icon from "vue-awesome/components/Icon";
// 全局注册图标
Vue.component("icon", Icon);

// 适配flex
import "@/common/flexible.js";

// 引入全局css
import "./assets/scss/style.scss";
import axios from 'axios'
// 配置请求的根路径
// axios.defaults.baseURL = 'http://127.0.0.1:9090'
axios.defaults.baseURL = 'http://121.40.77.217:9090'
// 响应拦截器返回我们要的数据
axios.interceptors.response.use(res => {
  return res.data
})
Vue.prototype.$http = axios
Vue.config.productionTip = false;


new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
